import java.util.Scanner;


public class Atividade11 {
	public static void main(String args[]){
		Scanner digitar = new Scanner(System.in);
		int num[]= new int[10];
		for(int i = 0; i<=9; i++){
			num[i] =digitar.nextInt();
			
		}
		for(int i = 9; i>=0; i--){
			System.out.println(num[i]);
			
		}
	}

}
